 <div id="outer-collection"><?php
/*
  Project: Blogmer - Open Source Blogging Software
  Type: PHP and Database
  Desc: Create form for forget password.
  Author: Yashpal
  Usage:  	$this->load->view('users/forgetpassword');
*/
	
	
	
				  
	$attributes = array('class' => 'forgetpassword', 'id' => 'forgetpassword');
	
	echo form_open('users/ForgetPassword');
	echo form_hidden('form', true);
	
	  echo '<div id="error" >'.$this->validation->error_string.'</div>';
	
	$username = array(
				  'name'        => 'username',
				  'id'          => 'username',
				  'value'       => $this->validation->username,
				  'size'        => '50',
				  'class'       => 'input',
				);
				 
	$email = array(
				  'name'        => 'email',
				  'id'          => '1email',
				  'value'       => $this->validation->email,
				  'size'        => '50',
				  'class'       => 'input',
				);
										
	
	
		$tmpl = array (
                    'table_open'          => '<table border="0" cellpadding="2" cellspacing="2">
					<thead><tr><th colspan="2">Forget Password</th></tr></thead>',

                    'heading_row_start'   => '<tr>',
                    'heading_row_end'     => '</tr>',
                    'heading_cell_start'  => '<th>',
                    'heading_cell_end'    => '</th>',

                    'row_start'           => '<tr>',
                    'row_end'             => '</tr>',
                    'cell_start'          => '<td>',
                    'cell_end'            => '</td>',

                    'row_alt_start'       => '<tr>',
                    'row_alt_end'         => '</tr>',
                    'cell_alt_start'      => '<td>',
                    'cell_alt_end'        => '</td>',

                    'table_close'         => '<tfoot><tr><td>&nbsp;</td><td>&nbsp;</td></tfoot></table>'
              );

	$this->table->set_template($tmpl);
	
	//$this->table->add_row('Username',form_input($username));
	//$this->table->add_row("",form_submit("forgetpassword", "Get it back!"));
	//$this->table->add_row("","");
	//$this->table->add_row("","<h3>OR</h3>");
	//$this->table->add_row("","");
	$this->table->add_row('email',form_input($email));
	$this->table->add_row("",'<input type="submit" name="post"  class="small-button" value="Get Back!" />');
	

	echo $this->table->generate();
	echo "</form>";
	
	
?></div>